package com.ly.activiti.controller;

import com.ly.activiti.domain.dto.ActivityHighLineDTO;
import com.ly.activiti.service.IActivityHistoryService;
import com.ly.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping ("/activitiHistory")
public class ActivitiHistoryController {

    @Resource
    private IActivityHistoryService iActivityHistoryService;

    //流程图高亮
    @GetMapping ("/gethighLine")
    public AjaxResult gethighLine (@RequestParam ("instanceId") String instanceId) {

        ActivityHighLineDTO activitiHighLineDTO = iActivityHistoryService.gethighLine ( instanceId );
        return AjaxResult.success ( activitiHighLineDTO );

    }


}
